
<div class="judul"><?php echo anchor("/jumlah_beasiswa/", $title);?></div>
<?php
  $flashdata = $this->session->flashdata('message');
  $messages = isset ($flashdata)?pesan($flashdata):"";
  echo "$messages";
  $form = isset ($formView)?$formView:"";
  if($form != ""){
     $this->load->view("$form"); 
  }
?>
<script type="text/javascript">
    $(document).ready(function(){
        $('input[type=submit]').click(function(){
            if($('#jumlah').val() == ""){
                alert('Jumlah tidak boleh kosong');
                $('#jumlah').focus();
                return false;
            }
        })
    })
</script>
<div class="data-list">
    <table class="tabel" style="width: 50%">
        <tr>
            <th>No</th>
            <th>Tingkat Pendidikan</th>
            <th>Jumlah Beasiswa</th>
            <th>Aksi</th>
        </tr>
        <?php
        $no = 1;
        foreach ($listJumlahBeasiswa as $row){
        ?>
        <tr class="<?php echo ($no%2)?"even":"odd";?>">
            <td style="text-align: center"><?php echo $no++;?></td>
            <td><?php echo $row['tingkat_pendidikan']?></td>
            <td style="text-align: right"><?php echo "Rp. ".rupiah($row['jumlah'])?></td>
            <td class="aksi">
                <?php
                  echo anchor('jumlah_beasiswa/edit_jumlah_beasiswa_form/'.$row['id'], 'edit', 'class=edit title="edit"');
                ?>
            </td>
        </tr>
        <?php
        }
        ?>
    </table>
</div>
